package com.naiterui.ehp.bs.recommend.vo.esign.ywx;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.Builder;
import lombok.Data;

/**
 * @author guoyongxiang
 * @date 2019/12/3 14:52
 * @since 1.0.0
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Builder
@Data
public class SignResultVO {

    public static Integer SIGN_STATUS_SUCCESS = 1;
    public static Integer SIGN_STATUS_FAIL = 2;

    public static Integer USER_TYPE_DR = 0;
    public static Integer USER_TYPE_PH = 1;
    public static Integer USER_TYPE_AL_PH = 2;

    /**
     * 用户类型(0:医生, 1:药师)
     */
    private Integer userType;

    /**
     * 文件编号
     */
    private String fileSn;

    /**
     * 处方编号
     */
    private String bizSn;

    /**
     * 签名状态(1:成功, 2:失败)
     */
    private Integer status;

    /**
     * 签名时间
     */
    private Date signTime;

    /**
     * 签名文件路径(相对路径)
     */
    private String path;


    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
